/**
 * Copyright (c) Freelens Authors. All rights reserved.
 * Copyright (c) OpenLens Authors. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */

@use "../workloads/workloads-mixins";
@use "../table/table.mixins";
@use "../vars" as *;

.Deployments {
  .TableCell {
    &.name {
      flex-grow: 1.5;
    }

    &.namespace {
      flex-grow: 1.5;
    }

    &.replicas {
      flex-grow: 0.4;
    }

    &.ready {
      flex-grow: 0.3;
    }

    &.desired {
      flex-grow: 0.3;
    }

    &.updated {
      flex-grow: 0.3;
    }

    &.available {
      flex-grow: 0.3;
    }

    &.age {
      flex-grow: 0.3;
    }

    &.warning {
      @include table.table-cell-warning;
    }

    &.conditions {
      flex-grow: 1.5;

      .condition {
        display: inline-block;
        margin-right: $margin;

        &.Available {
          color: workloads-mixins.$deployment-available;
        }

        &.Progressing {
          color: workloads-mixins.$deployment-progressing;
        }

        &.ReplicaFailure {
          color: workloads-mixins.$deployment-replicafailure;
        }
      }
    }
  }
}
